<template>
  <div class="address-bar">
    <i class="icon" :style="{backgroundImage:`url('${iconMap}')`}"></i>
    <b class="text">{{text}}</b>
  </div>
</template>

<script>
const iconMap = require('@/assets/icons/map.png')
export default {
  name: 'address-bar',
  data: () => ({
    iconMap
  }),
  props: {
    text: {
      type: String,
      required: true
    }
  }
}
</script>

<style lang="stylus">
.address-bar {
  display: inline-flex;
  align-items: center;
  font-size: 22px;

  .icon {
    width: 16px;
    height: 16px;
    margin-right: 0.25em;
    background: center / cover no-repeat;
  }
}
</style>
